package com.heima.reggie.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.heima.reggie.bean.Category;
import com.heima.reggie.bean.Dish;
import com.heima.reggie.bean.PageParam;
import com.heima.reggie.dto.DishDto;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface DishService {
    long findCpuntByCid(long cid);

    IPage<DishDto> selectByPage(PageParam pageParam);

    int add(DishDto dishDto);

    int deleteByIds(List<Long> ids);

    int updateStatus(int status, @RequestBody List<Long> ids);

    int updateDish(DishDto dishDto);

    List<DishDto> selectDishList(DishDto dishDto);
}
